package cate.game.role.res.call.msg;

import cate.common.annotation.OperationSetter;
import cate.common.table.d.GDOperation;
import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBHeroCall;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "食神召唤之置换确认或取消 の 请求")
@OperationSetter(value = GDOperation.NATURE_EXCHANGE_CONFIRM)
public class CallNatureExchangeConfirmReq implements MsgInput {
    @NoteField(value = "确认或者取消")
    public boolean confirm;

    @Override
    public MsgConfig conf() {
        return MsgIdBHeroCall.NATURE_EXCHANGE_CONFIRM;
    }

    @Override
    public void execute(GameBody game, ClientContext cc) {
        cc.getRole().getRes().callPO.nature.exeExchange(confirm);
    }
}
